/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testGui;

import javax.swing.JOptionPane;
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

/**
 *
 * @author Roy
 */
public class test {
    
     enum type{hello,world};
    public static void main(String [] bla)
    {
       
        switch (type.valueOf("b"))
        {
            case hello :
                System.out.println("the value was hello");
                break;
             case world :
                System.out.println("the value was " + type.world);
                break;
                 
              default:
                 System.out.println("unknown");
                 break;
                 
        }
        
        
//       int userChoise =  JOptionPane.showConfirmDialog(null,
//                "are you sure you want to delte this message"
//                , "delete msg", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);
//       if (userChoise == JOptionPane.OK_OPTION)
//       {
//           System.out.println("user choose to delete");
//           
//       }
//       else
//       {
//           System.out.println("user choose cancel");
//       }

    }


    
}
